package com.ykdl.member.kid.beans;

import java.io.Serializable;
import java.util.List;

import com.google.gson.Gson;
import com.google.gson.GsonBuilder;

import net.wxxr.http.interfaces.IJsonParser;
/**
 * 门店优惠券解析bean
 * @author jiafeiyu
 *
 */
public class StoreAndOnLineBean implements Serializable  ,IJsonParser{

	/**
	 * 
	 */
	private static final long serialVersionUID = -782049556663180785L;
	private List<OnLineCouponBean> online_coupon_list; 
	private List<TicketBean> offline_coupon_list;
	private StoreBean store;
	private String desc ;
	private String error ;
	public List<OnLineCouponBean> getOnline_coupon_list() {
		return online_coupon_list;
	}
	public void setOnline_coupon_list(List<OnLineCouponBean> online_coupon_list) {
		this.online_coupon_list = online_coupon_list;
	}
	public List<TicketBean> getOffline_coupon_list() {
		return offline_coupon_list;
	}
	public void setOffline_coupon_list(List<TicketBean> offline_coupon_list) {
		this.offline_coupon_list = offline_coupon_list;
	}
	public String getDesc() {
		return desc;
	}
	public void setDesc(String desc) {
		this.desc = desc;
	}
	public String getError() {
		return error;
	}
	public void setError(String error) {
		this.error = error;
	}
	public StoreBean getStore() {
		return store;
	}
	public void setStore(StoreBean store) {
		this.store = store;
	}
	@Override
	public IJsonParser parse(String json) throws Exception {
		// TODO Auto-generated method stub
		Gson   gson = null;
		if(null != json){
			GsonBuilder b = new GsonBuilder();
			gson  = b.create();
			return gson.fromJson(json, StoreAndOnLineBean.class);
		}
		return null;
	}
	
	
}
